package com.spzx.test1.Day3Test;
/*
    并非全力
*/

//分组运算

import java.util.concurrent.ForkJoinTask;

public class t4 {
    public static void main(String[] args) {

        MyForkJoinCompute myForkJoinCompute = new MyForkJoinCompute(1L, 10000L);

        ForkJoinTask<Long> fork = myForkJoinCompute.fork();//分配任务

        Long join = fork.join();//获取分配任务返回的结果
        //join是拿回结果
        System.out.println(join);

    }
}
